package com.itheima.easy.mapper;


import com.itheima.easy.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface NursingProjectPlanMapper {

    // 插入记录
    int insert(NursingProjectPlan nursingProjectPlan);



    // 修改记录
    int update(NursingProjectPlan nursingProjectPlan);



    // 根据 id 删除记录
    int deleteByIds(List<Long> ids);



    // 根据 id 获取记录
    NursingProjectPlan getById(Long id);



    // 获取所有记录列表
    List<NursingProjectPlan> listAll();



    // 插入所有记录列表
    int insertList(@Param("list") List<NursingProjectPlan> projectPlans);

    /**
     * 根据项目IDs批量查询
     * @param ids 项目IDs
     * @return 护理项目计划列表
     */
    List<NursingProjectPlan> listAllByProjectIds(List<Long> ids);
}
